<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/5/9
  Time: 14:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>

    <title>退款列表</title>
    <%@ include file="/common/include-core.jsp" %>
</head>
<body>
<div class="text-c">
    <form action="/refund/refundApplyList.html" method="post" id="searchForm">
        <input type="hidden" id="count" value="${pageInfo.total }" />
        <input type="hidden" id="page" name="page" value="${pageInfo.pageNum }" />
        <input type="hidden" id="pageSize" name="pageSize" value="${pageInfo.pageSize }" />
        <div class="Hui-article">
            <article class="cl pd-20">
                <span class="select-box" style="width:250px">
                    <select name="status" class="select" id="selectStatus">
                        <option  value="">无 </option>
                        <option value="6" ${bean.status==6?"selected":""}>申请退款</option>
                        <option value="8" ${bean.status==8?"selected":""}>已退款</option>
                    </select>
                </span>
                <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
                <button name="" class="btn btn-success" type="button" id="refundApplyExcelOut"><i class="Hui-iconfont">&#xe644;</i> Excel导出</button>
            </article>
        </div>
        <div class="Hui-article">
            <article class="cl pd-20">
                <%--<span class="btn-upload form-group">--%>
                            <%--<input class="input-text upload-url" type="text" name="photo" id="photo" readonly nullmsg="请添加文件！"--%>
                                   <%--style="width:200px">--%>
                            <%--<a href="javascript:void(0);" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>--%>
                            <%--<input type="file" multiple name="file" class="input-file" id="excelInFile">--%>
                        <%--</span>--%>
                <%--<input type="button" id="excelIn" class="btn btn-success radius" value="确定提交"/>--%>
            </article>
        </div>
    </form>
</div>
<div class="page-container">
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
        <tr>
            <th scope="col" colspan="9">退款列表</th>
        </tr>
        <tr class="text-c">
            <th width="15">序号</th>
            <th width="30">用户名</th>
            <th width="40">订单ID</th>
            <th width="40">付款时间</th>
            <th width="40">电话</th>
            <th width="40">退款原因</th>
            <th width="15">订单状态</th>
            <th width="15">创建时间</th>
            <th width="15">操作</th>
        </tr>
        </thead>
        <tbody>
            <c:forEach items="${pageInfo.list}" var="item" varStatus="index">
                <tr class="text-c">
                    <td>${index.index+1}</td>
                    <td>${item.userName}</td>
                    <td>${item.orderId}</td>
                    <td><fmt:formatDate value="${item.applyTime}" pattern="yyyy-MM-dd HH:mm" /></td>
                    <td>${item.phone}</td>
                    <td>${item.refundCause}</td>
                    <td class="td-status">
                        <c:if test="${item.status==-2}"><span class="label label-defaunt radius">已经删除订单</span></c:if>
                        <c:if test="${item.status==-1}"><span class="label label-defaunt radius">已过期</span></c:if>
                        <c:if test="${item.status==0}"><span class="label label-success radius">已取消</span></c:if>
                        <c:if test="${item.status==1}"><span class="label label-success radius">未付款</span></c:if>
                        <c:if test="${item.status==2}"><span class="label label-warning radius">已付款</span></c:if>
                        <c:if test="${item.status==3}"><span class="label label-success radius">未验证</span></c:if>
                        <c:if test="${item.status==4}"><span class="label label-success radius">已验证</span></c:if>
                        <c:if test="${item.status==5}"><span class="label label-success radius">交易完成</span></c:if>
                        <c:if test="${item.status==6}"><span class="label label-success radius">申请退款</span></c:if>
                        <c:if test="${item.status==7}"><span class="label label-success radius">取消退款</span></c:if>
                        <c:if test="${item.status==8}"><span class="label label-success radius">已退款</span></c:if>
                        <c:if test="${item.status==9}"><span class="label label-success radius">订单关闭</span></c:if>
                        <c:if test="${item.status==10}"><span class="label label-success radius">部分支付</span></c:if>
                        <c:if test="${item.status==11}"><span class="label label-success radius">支付失败订单关闭</span></c:if>
                        <c:if test="${item.status==12}"><span class="label label-success radius">待发货</span></c:if>
                        <c:if test="${item.status==13}"><span class="label label-success radius">已发货,待收货</span></c:if>
                        <c:if test="${item.status==14}"><span class="label label-success radius">已收货</span></c:if>
                        <c:if test="${item.status==15}"><span class="label label-success radius">已选号</span></c:if>
                        <c:if test="${item.status==16}"><span class="label label-warning radius">选号失败</span></c:if>
                        <c:if test="${item.status==17}"><span class="label label-warning radius">已撤单</span></c:if>
                    </td>
                    <td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:mm" /></td>
                    <td class="f-14">
                        <c:if test="${item.status==6}">
                        <a title="退款操作" href="javascript:;" id="agreeRefundApply" onclick="agreeRefundApply('${item.orderId}')" style="text-decoration:none">
                            <i class="Hui-iconfont">&#xe6f7;</i></a>
                        </c:if>
                    </td>
                </tr>
            </c:forEach>
        </tbody>
    </table>
    <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
</div>
</body>
</html>
<script type="text/javascript" src="/static/js/refundApply/refundApply.js"></script>
<%@ include file="/common/include-footer.jsp" %>